package cn.growthgate.fgo.entity;

import com.baomidou.mybatisplus.enums.IdType;

import cn.growthgate.fgo.entity.enums.ServantItemType;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 从者素材
 * </p>
 *
 * @author GrowthGate
 * @since 2019-06-19
 */
@TableName("t_data_servant_item")
public class ServantItem extends Model<ServantItem> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 从者id
	 */
	private Long servantId;

	/**
	 * 道具id
	 */
	private Long itemId;

	/**
	 * 类型
	 */
	private ServantItemType type;

	/**
	 * 等级
	 */
	private Integer level;

	/**
	 * 数量
	 */
	private Integer number;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getServantId() {
		return servantId;
	}

	public void setServantId(Long servantId) {
		this.servantId = servantId;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public ServantItemType getType() {
		return type;
	}

	public void setType(ServantItemType type) {
		this.type = type;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ServantItem{" + "id=" + id + ", servantId=" + servantId + ", itemId=" + itemId + ", type=" + type
				+ ", level=" + level + ", number=" + number + "}";
	}
}
